<%@ page contentType="text/html; charset=ISO-8859-1" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Sistema de notificaci&oacute;n de Pagos a Proveedores JDE - FCC Construcci&oacute;n de CA, S.A</title>
<style type="text/css">
.textfield
{
	width:120px;
	font-family:Verdana, Geneva, sans-serif;
	font-size:11px;
}
.textfield_no_editable
{
	width:120px;
	font-family:Verdana, Geneva, sans-serif;
	font-size:11px;
	background-color:#DFDFDF;
}
.bordes
{
	border:1px solid #000;
	border-collapse:collapse;
}
</style>
<!--DIALOGO-->
<link type="text/css" href="/jde/scripts/ui/base/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="/jde/scripts/ui/jquery-1.4.2.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/jquery.bgiframe-2.1.1.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.resizable.js"></script>
<script type="text/javascript" src="/jde/scripts/ui/ui/jquery.ui.dialog.js"></script>
<!--MENU-->
<link rel="stylesheet" href="/jde/scripts/menu/menu-bar.css" media="screen" type="text/css"/>
<script type="text/javascript" src="/jde/scripts/menu/menu-for-applications.js"></script>
<link rel="stylesheet" href="/jde/scripts/menu/menu-item.css" media="screen" type="text/css"/>
<script language="javascript" type="text/javascript" src="script.js"></script>
</head>
<body style="font-family:Verdana, Geneva, sans-serif; font-size:11px;">
<div id="atencion" title="Atenci&oacute;n"></div>
<jsp:useBean id="db" class="db.Conexion" scope="session"/>
<%
//COMPROBAR CONEXION
if ((db.ObtenerEstadoSQLServer().equals("desconectado"))||(db.ObtenerEstadoSQLServer() == null))
{
	out.write("<script language=\"javascript\" type=\"text/javascript\">"+"\n"+
	"<!--"+"\n"+
	"window.location=\"/jde/Pagos/?sesion_finalizada=ok\""+"\n"+
	"-->"+"\n"+
	"</script>");
}
else
{
	java.sql.Connection conex = db.ObtenerConexionSQLServer();
	if (conex.isClosed() == false)
	{
%>
<jsp:include page="/Pagos/home/top.jsp"/>
<div style="width:100%;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td width="100%" align="left">DATOS DE LA SESI&Oacute;N (<%=db.ObtenerUsuarioFull()%>, Hora: <span id="reloj"></span>)</td>
</tr>
</table>
</div>
<div id="todo" style="background-image:url(/jde/img/logo_fondo.png); height:250px; background-repeat:no-repeat; background-position:center;">
	<div style="margin-top:10px; margin-bottom:10px;">
		<div id="autorizaciones_pendientes" style="border:1px solid #666; margin-bottom:10px; margin-top:5px; font-size:14px; text-align:center;">
		</div>
	</div>
</div>
<%
	}
	else
	{
		out.write("<script language=\"javascript\" type=\"text/javascript\">"+"\n"+
		"<!--"+"\n"+
		"window.location=\"/jde/Pagos/?sesion_finalizada=ok\""+"\n"+
		"-->"+"\n"+
		"</script>");
	}

}
%>
</body>
</html>